package com.shang;

import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

/**
 * @ClassName ESConfig
 * @Description TODO
 * @Author Larry
 * @Date 2020/12/16 16:51
 * @Version 1.0
 */
@Configuration
public class ESConfig {
    /**
     * 解决netty引起的issue
     */
    @PostConstruct
    void init() {
        System.setProperty("es.set.netty.runtime.available.processors", "false");
    }
}
